
import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:like_button/like_button.dart';

class AboutMePage extends StatelessWidget{
  int _likecount=0;
  Future<bool> onLikeButtonTapped(bool isLiked) async{
    _likecount++;
    if(_likecount>=10&&_likecount%2==1){EasyLoading my = EasyLoading.instance..indicatorType=EasyLoadingIndicatorType.hourGlass..successWidget=new Column(
      children: <Widget>[new Center(child: Icon(Icons.favorite,color: Colors.pinkAccent,),
      ),new Text('yeah!')],);
    EasyLoading.showSuccess('');
    }
    return !isLiked;
  }
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return new Scaffold(
      appBar: AppBar(title: Text('关于我'),centerTitle: true,actions: <Widget>[
        LikeButton(isLiked: false,onTap: onLikeButtonTapped,)
      ],),
      body:  Column(
          children: <Widget>[
            Expanded(child: Image(image: AssetImage('imgs/IMG_0248.jpeg'),width: 200,height: 200,),),
            Divider(height: 0,color: Colors.white,),
            Text('略略略。。。')
          ],
      ),
    );
  }
}